﻿using MeterialManager.Model;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MeterialManager.Utility;
using MeterialManager.Aop.ExceptionProcess;
using System.Windows.Forms;

namespace MeterialManager.Aop.ServiceProcess
{
    public class Service : IService
    {
        [Transaction(IsolationLevel = IsolationLevelEnum.ReadCommitted)]
        public ResponseObject<int> DoSomething(Func<dynamic, ResponseObject<int>> func,dynamic model)
        {
            return func(model);
        }
    }

}
